﻿<u:UObject x:Class="UTable.Objects.UAppLoader"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:u="clr-namespace:UTable.Objects.Controls;assembly=UTable.Core"
    Height="400" Width="350">
    <u:UGrid>
        <u:UGrid.RowDefinitions>
            <RowDefinition Height="49*" />
            <RowDefinition Height="349*" />
        </u:UGrid.RowDefinitions>
        <u:UTextBlock Text="Application Loader" Foreground="White" FontSize="20" Margin="90,11.2,92,11.2" />
        <u:UGrid Grid.Row="1" Margin="12,0,12,12">
            <u:UListBox Background="White" ItemsSource="{Binding Applications}">
                <u:UListBox.ItemTemplate>
                    <DataTemplate>
                        <u:UButton Height="75" Pressed="UButton_Pressed" GlowBrush="Yellow" Foreground="Gray" Margin="0, 0, 20, 3" HorizontalContentAlignment="Left">
                            <u:UGrid>
                                <Grid.ColumnDefinitions>
                                    <ColumnDefinition Width="75"/>
                                    <ColumnDefinition Width="*"/>
                                </Grid.ColumnDefinitions>
                                <Image Source="{Binding Icon}" HorizontalAlignment="Left" Margin="5" Width="50" Grid.Column="0"  />
                                <u:UTextBlock Text="{Binding Title}" FontSize="18" HorizontalAlignment="Left" VerticalAlignment="Center" Grid.Column="1"/>
                            </u:UGrid>
                        </u:UButton>
                    </DataTemplate>
                </u:UListBox.ItemTemplate>
            </u:UListBox>
        </u:UGrid>
    </u:UGrid>
</u:UObject>
